package com.ilearn.iodata.iolingo.persistent;

import org.apache.olingo.commons.api.data.Entity;
import org.apache.olingo.commons.api.data.EntityCollection;
import org.apache.olingo.commons.api.data.Property;
import org.apache.olingo.commons.api.edm.EdmEntitySet;
import org.apache.olingo.commons.api.edm.EdmProperty;
import org.apache.olingo.server.api.uri.UriParameter;

import java.util.List;

public interface Storage {

    public EntityCollection getCollection(EdmEntitySet edmEntitySet);

    public Entity getEntityByKey(EdmEntitySet edmEntitySet, List<UriParameter> keyPredicates);

    public Property getPrimitiveByKey(EdmEntitySet edmEntitySet, List<UriParameter> keyPredicates, EdmProperty edmProperty);

}
